let api = `${baseApi}contractManagement`;
/**
 * @method deleteContract 批量删除合同
 * @param id集 字符串逗号分隔 ,1,2
 * @return axios
 */
export const deleteContract = function(params) {
    return axios.delete(`${api}/deleteContract/`+params);
}

/**
 * @method getContract 获取所有合同信息 带分页
 * @param 
 * @return axios
 */
export const getContract = function(params) {
    return axios.post(`${api}/getAllContract`, params);
}

/**
 * @method getContractByCondition
 * @param 
 * @return axios
 */
export const getContractByCondition = function(params) {
    return axios.post(`${api}/getContractByCondition`, params);
}

/**
 * @method getContractById 根据ID获取合同详细信息
 * @param 
 * @return axios
 */
export const getContractById = function(params) {
    return axios.get(`${api}/getContractById/` + params);
}

/**
 * @method reviewContract 审核
 * @param 
 * @return axios
 */
export const reviewContract = function(params) {
    return axios.post(`${api}/reviewContract`, params);
}


/**
 * @method surrender 退租
 * @param 
 * @return axios
 */
export const surrender = function(params) {
    return axios.post(`${api}/surrender`, params);
}

/**
 * @method updateContract 修改合同信息和租户信息
 * @param 
 * @return axios
 */
export const updateContract = function(params) {
    return axios.put(`${api}/updateContract`, params);
}

/**
 * @method addContract 添加合同信息
 * @return axios
 */
export const addContract = function(params) {
    return axios.post(`${api}/addContract`, params);
}
